package com.spring.cootask.web.service;

import com.spera.shopoa.util.ShopOaSessionUtil;
import com.spring.cootask.web.model.CooTaskHead;
import com.spring.cootask.web.model.CooTaskTrans;
import com.spring.cootask.web.model.CooTaskUser;
import com.spring.security.web.model.BaseResult;

import java.util.List;

/**
 * Created by WoJunyu on 2016/9/6.
 * */
public interface CooTaskService {
    BaseResult saveTask(CooTaskHead data, ShopOaSessionUtil.OaUser oaUser) throws Exception;

    BaseResult deleteTask(String id) throws Exception;

    List<CooTaskHead> selectCreateTaskByParm(CooTaskHead data);

    List<CooTaskTrans> selectTransTaskByParm(CooTaskTrans data);

    BaseResult saveTaskUser(CooTaskUser data, ShopOaSessionUtil.OaUser oaUser) throws Exception;

    BaseResult updateTaskUser(CooTaskUser data, ShopOaSessionUtil.OaUser oaUser) throws Exception;
}
